package com.lap.auth.application.api.command;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import java.util.List;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
@Schema(description = "批量创建Api命令")
public class CreateApisCmd {

  @NotBlank(message = "{api.module.required}")
  @Length(max = 32, message = "{api.module.max.length}")
  @Schema(description = "API模块")
  private String module;

  @NotEmpty(message = "{api.apiList.required}")
  @Valid
  @Schema(description = "接口集合")
  private List<CreateApiCmd> apiList;
}
